package com.mwh.yuantu.dao;

import java.util.List;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.mwh.yuantu.dao.mapper.EmailInfoMapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.mwh.yuantu.entity.EmailInfoEntity;

/**
 * (EmailInfo)表数据库访问层
 *
 * @author maweihong
 * @since 2023-11-01 09:47:30
 */
@Service
public class EmailInfoDao extends ServiceImpl<EmailInfoMapper , EmailInfoEntity> {

    @Autowired
	private EmailInfoMapper emailInfoMapper;

    public List<EmailInfoEntity> list(){
        return emailInfoMapper.list();
    }

    public int insert(EmailInfoEntity emailInfo){
        return emailInfoMapper.insert(emailInfo);
    }

    public int update(EmailInfoEntity emailInfo){
        return emailInfoMapper.update(emailInfo);
    }

    public int delete(@Param("idArr") String[] idArr){
        return emailInfoMapper.delete(idArr);
    }

    /**
     * 根据主键查询记录信息
     * @param id 主键
     * @return
     */
    public EmailInfoEntity selectById(String id){
        return emailInfoMapper.selectById(id);
    }

}

